﻿using IntelligentAgriculture.Contracts.Dto.Input;
using IntelligentAgriculture.Contracts.Dto.Output;
using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    /// <summary>
    /// 羊只转舍服务接口
    /// </summary>
    public interface ISheepRescissionService
    {
        /// <summary>
        /// 获取羊只转舍列表
        /// </summary>
        /// <returns>羊只转舍列表</returns>
        Task<PageOutput<SheepRescissionOutput>> GetSheepRescission(SheepRescissionInput input);
        /// <summary>
        /// 添加羊只转舍
        /// </summary>
        /// <param name="sheepRescissions">羊只转舍列表</param>
        /// <returns></returns>
        Task<int> AddSheepRescission(List<Sheeprescission> sheepRescissions);
        /// <summary>
        /// 获取档案表耳号列表
        /// </summary>
        /// <returns></returns>
        Task<List<Eartag>> GetEweEarTagsFromSheepFile();
        /// <summary>
        /// 删除羊只转舍
        /// </summary>
        /// <param name="userId"> 用户Id</param>
        /// <param name="ids"> 羊只转舍Id列表</param>
        /// <returns></returns>
        Task<int> DelSheepRescission(int userId, params int[] ids);
    }
}
